package com.clwl.supervise.superviseapp.mapper.risk;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.clwl.supervise.superviseapp.entity.risk.JgDynamicContent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface JgDynamicContentMapper extends BaseMapper<JgDynamicContent> {


    JgDynamicContent selectByStandardIdAndContentId(@Param("dynamicStandardId") Long dynamicStandardId,@Param("checkContentId") Long checkContentId);

    List<JgDynamicContent> selectByDynamicCheckId(@Param("dynamicScoringId") Long dynamicScoringId);

    List<JgDynamicContent> selectByStandardId(@Param("standardId") Long standardId);

    int batchInsert(@Param("list") List<JgDynamicContent> batchInsertContents);

    int batchUpdate(@Param("list") List<JgDynamicContent> batchUpdateContents);

    List<JgDynamicContent> selectByStandardIds(@Param("list") List<Long> dsIds);
}